package com.lanou3g.code0418.methods;

/**
 * Created by dllo on 18/4/18.
 */
public class Main {
    public static void main(String[] args) {
        //currentThread()可以返回当前方法所在的线程对象
        Thread thread = Thread.currentThread();


        ThreadUtil.sleep(1000);

        System.out.println(thread.getName());
    }
}
